FROM registry.cn-hangzhou.aliyuncs.com/laodada/lzj-store-add-vim:openjdk_26_v1.0

# 安装必要的依赖库，包括字体库
# 这会解决 libfreetype.so.6 缺失的问题
RUN apt-get update && apt-get install -y \
    fontconfig \
    libfreetype6 \
    libfreetype6-dev \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /zy-pro/ruoyi-admin
COPY ruoyi-admin/target/*.jar ruoyi-admin.jar
EXPOSE 9990
ENTRYPOINT ["java","-jar","ruoyi-admin.jar"]